package operator;

public class Demo02 {
    public static void main(String[] args) {
        long a = 12313546546546L;
        int b = 123;
        short c = 10;
        byte d = 8;
        System.out.println(a+b+c+d);
        System.out.println(b+c+d);
        System.out.println(c+d);
        //当运算中有long变量时结果也为long
        //其他情况都是结果都是int
    }
}
